package com.wnxy.carl.carlorderassembly.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 订单详情表
 * </p>
 *
 * @author Lucas
 * @since 2021-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("carl_order_info")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "order_info_id", type = IdType.AUTO)
    private Integer orderInfoId;

    /**
     * 订单表id
     */
    private Integer orderId;

    /**
     * 商品详情表id
     */
    private Integer goodsId;

    /**
     * 商品名字
     */
    private String goodsName;

    /**
     * 商品图片地址
     */
    private String goodsImg;

    /**
     * 单个商品售价
     */
    private Double goodsPrice;

    /**
     * 购买商品数量
     */
    private Integer number;

    /**
     * 商品合计
     */
    private Double goodsTotal;

    /**
     * 记录新增时间
     */
    private Date rawAddTime;

    /**
     * 记录修改时间
     */
    private Date rawUpdateTime;


}
